<?php
    if ( ! defined('BASEPATH')) exit('No direct script access allowed');
    class Mmod_article extends MYAD_Model{
        protected $table_name = 'article';
        function __construct(){
            parent::__construct();
        }
        function getCatNameById($idCat){
            $this->db->where('id',$idCat);
            $query = $this->db->get('c_article');
            return $query->row_array();
        }
    }
?>